//
//  GameObject.h
//  TestFistGame
//
//  Created by  on 5/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"

@class GameLayer;

@interface GameObject : CCNode {
    GameLayer *handler;
    CCSprite *spriteBody;
    float PI;
}

@property (nonatomic, retain) CCSprite *spriteBody;
@property (nonatomic, retain) GameLayer *handler;

-(id)initGameObjectWith:(GameLayer *)_handler;
-(void)update:(ccTime)_timeUpdate;
-(float)vectorToRadians:(CGPoint)vector;
-(CGPoint)radiansToVector:(float)radians;
-(float)radiansToDegrees:(float)r;
-(CGPoint)roundPoint:(CGPoint)_point;
-(float)degreesToRadians:(float)d;
-(NSMutableArray*)loadAnimationWithNumberOfFrames:(int) numberOfFrames withFrameName:(NSString*)frameName;
-(CCAnimation *)loadAnimationFromCacheByName:(NSString *)_name withCount:(int)_frameCount delay:(float)_delay;
-(BOOL)removeAnimationInFrameCache:(NSString *)_frameCacheName;
- (CGRect) rect;
@end
